package com.smedi.ismedi.progress.core.application.query.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smedi.ismedi.progress.api.dto.response.ProgressReportMonthDetailAllResponse;
import com.smedi.ismedi.progress.api.dto.response.ProgressReportWeekDetailAllResponse;
import com.smedi.ismedi.progress.core.application.command.*;
import com.smedi.ismedi.progress.core.application.query.ProgressReportQueryService;
import com.smedi.ismedi.progress.core.application.query.ProjectBriefReportQueryService;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.*;
import com.smedi.ismedi.progress.core.domain.dto.ProjectBriefReportVo;
import com.smedi.ismedi.progress.core.domain.repository.ProgressReportRepository;
import com.smedi.ismedi.progress.core.domain.repository.ProjectBriefReportRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 特种设备应用服务实现类
 *
 * @author xienannan
 * @date 2021/08/28
 */
@Service
@RequiredArgsConstructor
public class ProjectBriefReportQueryServiceImpl implements ProjectBriefReportQueryService {
    private final ProjectBriefReportRepository projectBriefReportRepository;

    @Override
    public Page<ProjectBriefReport> getProjectBriefList(ProjectBriefListQuery projectBriefListQuery) {
        return projectBriefReportRepository.getProjectBriefList(projectBriefListQuery);
    }

    @Override
    public ProjectBriefReportVo getProjectBriefReportDetail(ProjectBriefReportDetailQuery projectBriefReportDetailQuery) {
        return projectBriefReportRepository.getProjectBriefReportDetail(projectBriefReportDetailQuery);
    }

    @Override
    public  List<ProjectBriefReportVo> getProjectBriefReportDetailAll(ProjectBriefReportDetailQuery projectBriefReportDetailQuery) {
        return projectBriefReportRepository.getProjectBriefReportDetailAll(projectBriefReportDetailQuery);
    }

    @Override
    public Boolean projectBriefCreateTask() {
        return projectBriefReportRepository.projectBriefCreateTask();
    }
}
